package org.example.system.service;

import org.example.system.domain.Student;
import org.example.system.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author huis
 */

@Service
public class StudentServiceImpl implements IStudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> list() {
        List<Student> allStudents =studentMapper.getAllStudents();
        return allStudents;
    }
}
